home *** CD-ROM | disk | FTP | other *** search
/ PC World Komputer 2010 April / PCWorld0410.iso / hity wydania / Bank smakow / BankSmakow.air / BankSmakow.swf / scripts / mx / skins / halo / WindowBackground.as < prev    next >
Text File  |  2009-12-16  |  1KB  |  55 lines

  1. package mx.skins.halo
  2. {
  3.    import flash.display.Graphics;
  4.    import mx.core.mx_internal;
  5.    import mx.skins.ProgrammaticSkin;
  6.    
  7.    use namespace mx_internal;
  8.    
  9.    public class WindowBackground extends ProgrammaticSkin
  10.    {
  11.       
  12.       mx_internal static const VERSION:String = "3.5.0.12683";
  13.        
  14.       
  15.       public function WindowBackground()
  16.       {
  17.          super();
  18.       }
  19.       
  20.       override public function get measuredWidth() : Number
  21.       {
  22.          return 8;
  23.       }
  24.       
  25.       override public function get measuredHeight() : Number
  26.       {
  27.          return 8;
  28.       }
  29.       
  30.       override protected function updateDisplayList(param1:Number, param2:Number) : void
  31.       {
  32.          var _loc6_:uint = 0;
  33.          super.updateDisplayList(param1,param2);
  34.          var _loc3_:Graphics = graphics;
  35.          var _loc4_:Array = getStyle("backgroundGradientColors");
  36.          var _loc5_:Array = getStyle("backgroundGradientAlphas");
  37.          if(!_loc4_)
  38.          {
  39.             _loc6_ = getStyle("backgroundColor");
  40.             if(isNaN(_loc6_))
  41.             {
  42.                _loc6_ = 16777215;
  43.             }
  44.             _loc4_ = [_loc6_,_loc6_];
  45.          }
  46.          if(!_loc5_)
  47.          {
  48.             _loc5_ = [1,1];
  49.          }
  50.          _loc3_.clear();
  51.          drawRoundRect(0,0,param1,param2,0,_loc4_,_loc5_,verticalGradientMatrix(0,0,param1,param2));
  52.       }
  53.    }
  54. }
  55.